<template>
  <PPMPage v-if="pageData.length > 0" :formData="formData" :pageData="pageData">
    <template slot="footer" class="dialog-footer">
      <el-row>
        <el-col :span="24" class="text-center">
          <el-button type="primary" size="medium" @click="submitFun">保存</el-button>
          <el-button size="medium" @click="closeFun">关闭</el-button>
        </el-col>
      </el-row>
    </template>
  </PPMPage>
</template>
<script>
import ppmmixin from "@/mixins/ppmmixin.js";
import { mapState } from "vuex";
export default {
  name: "PPMBatchEditOrder",
  mixins: [ppmmixin],
  data () {
    return {
      result: [],
      ppmParams: {}
    };
  },
  computed: {
    ...mapState("user", ["user", "busiManagerId", "custManagerId"]),
  },
  props: {
    ODKInfo: {
      type: Object,
      default: () => {
        return {};
      },
    },
    CTOInfo: {
      type: Array,
      default: () => {
        return [];
      },
    },
  },
  async mounted () {
    let ppmCondition = {
      "offerId": 10010021,
      "productId": 80008007,
      "prodName": "MSTP",
      "serviceOfferId": "4010100000",
      "modType": "50200003",
      "optionId": "28",
      "orderDate": ""
    };
    sessionStorage.setItem("ppmCondition", JSON.stringify(ppmCondition));
    //设置属性
    this.loadPPMConfig(ppmCondition);
  },
  methods: {
    submitFun(){
       console.log("带过来的列表数据:",this.CTOInfo)
    },
    closeFun(){
      this.$emit('close')
    }
  },
}
</script>